3559fee51404f8538f1f39d905b230c33b3295b0,subprojects/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java,DaemonStateCoordinator,awaitStopOrIdleTimeout,#number#,101
Before Change
public boolean awaitStopOrIdleTimeout(int timeout) {
lock.lock();
try {
while ((!isStarted() || isRunning()) || (!isStopped() && !hasBeenIdleFor(timeout))) {
try {
if (!isStarted() || isRunning()) {
condition.await();
After Change
try {
LOGGER.lifecycle("waiting for daemon to stop or be idle for {}ms", timeout);
while (true) {
if (isStopped()) {
return true;
} else if (hasBeenIdleFor(timeout)) {
return false;
}
try {